import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/seat/` + url, ...arg)

/**
 * 机位Api接口管理器
 *
 * @author lrw
 * @date  2025/10/04 09:47
 **/
export default {
	// 获取机位分页
	roomSeatPage(data) {
		return request('page', data, 'get')
	},
	// 提交机位表单 edit为true时为编辑，默认为新增
	roomSeatSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除机位
	roomSeatDelete(data) {
		return request('delete', data)
	},
	// 获取机位详情
	roomSeatDetail(data) {
		return request('detail', data, 'get')
	}
}
